<template>
  <div>
    <h1>首页</h1>
    <el-button @click="changeLocale('zh-CN')">切换语言</el-button>
    <el-button @click="changeLocale('en-US')">切换语言</el-button>
  </div>
</template>

<script setup lang="ts">
import useLocale from '@/hooks/locale'

const { changeLocale, currentLocale } = useLocale()
</script>
